<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE>
<html lang="zh-CN">
<% 
String path = request.getContextPath(); 
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<base href="<%=basePath%>">
<title>search</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/style1.css" rel="stylesheet">
</head>
<body>
<!-- p>图书查询：输入任意一个关键词即可。</p>
<form action="book" method="post">
<div>
<input name="bno" type="text" placeholder="图书编号">
<input name="title" type="text" placeholder="书名">
<input name="author" type="text" placeholder="作者">
<input name="category" type="text" placeholder="类别">
<input name="year" type="text" placeholder="出版年份">
<input name="price" type="text" placeholder="价格">
<button  type="submit">查询</button>
</div>
</form-->
<div class="container-fluid">
	<div class="row">
		<div class="col-md-12">
			<div class="jumbotron">
				<h2>
					图书查询
				</h2>
				<p>
					输入一个信息即可，若不输入默认查询所有。
				</p>
			</div>
			<form role="form" action="book" method="post">
				<div class="form-group">
					<label>
						图书编号
					</label>
					<input name="bno" type="text" class="form-control">
				</div>
				<div class="form-group">
					 <label>
						书名
					</label>
					<input name="title" type="text" class="form-control">
				</div>
				<div class="form-group">
					 <label>
						作者
					</label>
					<input name="author" type="text" class="form-control">
				</div>
				<div class="form-group">
					 <label>
						类别
					</label>
					<input name="category" type="text" class="form-control">
				</div>
				<div class="form-group">
					 <label>
						出版年份
					</label>
					<input name="year" type="text" class="form-control">
				</div>
				<div class="form-group">
					 <label>
						价格
					</label>
					<input name="price" type="text" class="form-control">
				</div>
				<button type="submit" class="btn btn-primary">
					查询
				</button>
				<button type="button" class="btn active btn-link" onclick="window.location.href='index.jsp'">
				退出
			</button>
			</form>
		</div>
	</div>
</div>
<script src="js/jquery.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/scripts.js"></script>
</body>
</html>